import { Component, Input } from '@angular/core';
import { NavController, App } from 'ionic-angular';
import { StorePage } from '../../pages/sp/store/store';

@Component({
  selector: 'ion-grid9',
  templateUrl: 'grid9.html'
})
export class Grid9Component {
  @Input() data;
  @Input() showTitle;

  constructor(private navCtrl: NavController,private app: App) {
  }

  detail(module) {
    if (!module.link) {
      return;
    }
    this.app.getRootNav().push(module.link, {item: module});
  }
}
